package com.panti.common.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 数据源
 * 
 * @author panti
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DataSourceType
{
    /**
     * 主库
     */
    MASTER("MASTER","若依框架数据库"),

    /**
     * 从库
     */
    SLAVE("SLAVE","若依框架从数据库"),

    /**
     * 自定义数据源--panti
     */
    PANTI("PANTI","业务数据库");



    private String dataBaseCode;

    private String desc;

    DataSourceType(String sjy, String zhushi) {
        this.dataBaseCode = sjy;
        this.desc = zhushi;
    }

    public String getDataBaseCode() {
        return dataBaseCode;
    }

    public String getDesc() {
        return desc;
    }
    public void setDataBaseCode(String dataBaseCode) {
        this.dataBaseCode = dataBaseCode;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
